gusucode.com > ​数字信号处理,包括:各种现有信号及随机信号的输入,从文件读取数据的输入 > Digital Signal Matlab ex1/delta.m

    function [nx,x]=delta(n)
x=(n==0);
nx=n;